// dlg.txt

//mark_quest_dest(zone,x,y,layer,quest);
//	code =
//		sf(,,2);
//		toggle_quest(19,10);
//		award_party_xp(MED_QUEST_XP);
//	break;

begintalkscript;

variables;

short this_town = 10;

begintalknode;
	tag = 1;
	condition = get_sdf(this_town,1) == 0;
	text1 = "You enter the port city of Laskara, the Rokaj's portal to the outside world. You've toured a lot of affluent cities like this with Sutter over the last year, but this one immediately stands out as strange.";
	text2 = "The Rokaj is thought of as a land of brutal, barbaric warriors. Laskara is a city of people who dress up as brutal warriors. The people here are wealthy, and their leather jerkins and jagged blades are all carefully-made and very stylish, in their way.";
	text3 = "The city has, or had, defensive walls. They have been left to crumble into ruin. Laskara is wealthy enough to repair them, but, for some reason, they don't. They are a depressing eyesore in what could be a lovely city.";
	text4 = "As you pass, the guards and townsfolk look at you with awe and respect. After a bunch of Ro tried to murder you in your quarters, it is a jarring change.";
	code =
		sf(this_town,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(this_town,2) == 0 && gf(10,11) > 1;
	text1 = "You return to the city of Laskara. When you were here before, the air was tense, but it was still an active, festive city. That has ended. Their Raasa, their leader, has been murdered. Everyone is tense. The guards are alert, and the streets are empty.";
	text2 = "War is in the air, for the first time in a very long time. The wealthy merchants of the coast are afraid.";
	code =
		sf(this_town,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(this_town,3) == 0;
	text1 = "You enter the hall of Raasa Elha, the leader of the Gentle Coast. Like the rest of Laskara, this chamber is a tasteful mix of Rokaj savagery and cosmopolitan elegance.";
	text2 = "The clan leaders of the Ro meet here and sit on rough wood stools in a circle, sharing meat grilled over an open fire, according to tradition. But the wine is imported and expensive, and the decorations are stylish and tasteful. (If outdated.)";
	text3 = "The Raasa of the Gentle Coast is clad in finely-cut furs, and a curved blade hangs at her side. Yet, this portly, middle-aged woman has not seen battle for a long time. Gold jewelry gleams on her fingers and around her neck.";
	text4 = "Raasa Elha notes the royal insignia on your shoulder. She slowly rises to meet you. _[P] [N], this is a great honor. Please come and join me in a meal. I am Raasa Elha, and our city is at your disposal._";
	code =
		sf(this_town,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(this_town,4) == 0 && gf(10,11) > 1;
	text1 = "You return to the hall of Raasa Elha. You can see where she was killed. The northeast corner of the hall, where she was sitting, was scorched. The whole meeting hall smells of smoke. And less pleasant things.";
	text2 = "Raasa Elha has already been replaced, sort of. Another Ro of the Gentle Coast is sitting on a different stool. He rises when you enter. _Welcome back, [P]. I, Malwen, will be acting as Raasa for now. Until we have a moment to recover from this savage crime._";
	code =
		sf(this_town,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(this_town,5) == 0;
	text1 = "The sign outside said that this building was for the Erudico. Looking around at the arcane machinery and materials in this room, you now know what that means. Mages. They are everywhere, practicing their strange arts and engaging in mad experiments.";
	text2 = "As expected, the Erudico are like mages everywhere, except they approach their art in the way of the Rokaj: With limitless enthusiasm, no self-reflection, and non-existent safety procedures.";
	code =
		sf(this_town,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(this_town,6) == 0;
	text1 = "You look around the docks of Laskara. By the standards of the rest of Haven, this is a small and outdated facility. For the Rokaj, this is their main portal to the outside world and the source of their wealth.";
	text2 = "The Ro does produce goods of some value. Quicksilver. Fine wood. Precious amber. Gemstones. They leave through here, in return for the crafts and knowledge of the rest of Haven.";
	text3 = "How much of that wealth manages to make it into the mountains to the north remains to be seen.";
	code =
		sf(this_town,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(this_town,7) == 0;
	text1 = "You enter the Haven Hall. It only makes sense that Haven would have a large embassy in this town. The place is a bit of a jumble. It has to serve as a site for diplomatic missions, a military headquarters, and an inn for travelers from outside the Ro.";
	text2 = "Right now, it is eerily quiet. Since you were attacked, merchants have been clearing out, spies have gone off to spy, and soldiers have been returning to the field to prepare for battle.";
	text3 = "You hear shouting coming from upstairs. That is where the activity is.";
	code =
		sf(this_town,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(this_town,8) == 0;
	text1 = "You emerge upstairs into a large meeting hall. Soldiers are everywhere. Maps and plans are being consulted. The Seventh Army is camped to the south, and your general is here, making plans.";
	text2 = "The Ro attempted to kill two of Queen Sharyn's children. There is going to be a spectacular response. What form that response takes depends on your actions.";
	text3 = "When the general sees you, he waves. _Welcome, [P]! I would beg a moment of your time._ He sits at his desk in the northeast corner as soldiers scurry off in all directions to prepare.";
	code =
		sf(this_town,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(this_town,9) == 0;
	text1 = "You approach the hall of the Raasa of the Gentle Coast. Here, you will meet a leader of the Rokaj. You've never taken part in diplomacy like this on your own. You sense, for a moment, all of the lives that depend on the decisions you make. Or don't make.";
	text2 = "And then the royal symbol of the [P] of Haven appears on your shoulder, placed there by your mother's magic. It will appear there no matter what you wear. If you strip naked, it will be a tattoo on your skin.";
	text3 = "When on official business, your mother insists that the mark of your identity be visible wherever you go. It can be incredibly irritating.";
	code =
		sf(this_town,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(this_town,10) == 0;
	text1 = "Every proper city in your Empire has an inn. Haven's soldiers, merchants, and officials constantly roam your vassals, and they need safe places to eat and sleep.";
	text2 = "Somewhere in this smoky hall, you are sure to find a bed you can use to rest.";
	code =
		sf(this_town,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(this_town,11) == 0;
	text1 = "__";
	code =
		sf(this_town,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(this_town,12) == 0;
	text1 = "__";
	code =
		sf(this_town,12,1);
	break;

// MIXED

begintalknode; 
	tag = 13;
	condition = 1;
	text1 = "This is an old, thick tome, bound in leather. You flip through it. It is a record of magical and war research in the Rokaj, collected by the Erudico.";
	text2 = "Much of it is incomprehensible. A lot of it you already know. A bookmark indicates one battle technique that is very interesting. You take some time to study it.";
	text3 = "You can now train the ability: Shield Shatter.";
	text4 = "You flip through it for a while, but you don't learn anything new.";
	code =
		if (gf(96,0) == 0) {
			rs(4);
			sf(96,0,1);
			}
			else {
				rs(2); rs(3);
				}
	break;
	
begintalknode;
	tag = 14;
	condition = 1;
	text1 = "Please enjoy Laskara!";
	text2 = "Your visit is an honor.";
	text3 = "Hail!";
	text4 = "Has Haven returned?";
	text5 = "The raiders are coming.";
	text6 = "We don't want war.";
	text7 = "The Raasa is dead.";
	text8 = "Our leader is lost.";
	action = SPEECH_BUBBLE;
	code =
		cs();
		if (gf(10,11) < 2)
			as(get_ran(1,1,6));
			else as(get_ran(1,1,8));
	break;

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "The sailors, dockworkers, and merchants dance around you. They are all absorbed by work, looking for jobs or goods. [P] or not, they shout at you whenever you're in their way. They have no interest in conversation.";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "Watch out!";
	text2 = "Want to taste this?";
	text3 = "My creature escaped.";
	text4 = "We're a small outpost.";
	text5 = "Does this smell weird?";
	text6 = "Need more books.";
	action = SPEECH_BUBBLE;
	code =
		cs();
			as(get_ran(1,1,6));
	break;

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "The guards of Laskara are friendly and respectful, but they don't know much of interest. They are trained and outfitted by Haven, and they look like competent warriors.";
	text2 = "The death of Raasa Elha has left them utterly shocked. They don't know what is coming or how to plan for it. Panic is in the air.";
	code =
		if (gf(10,11) < 2)
			rs(2);
	break;
	
begintalknode;
	tag = 18;
	condition = 1;
	text1 = "This building is full of Havenites. They are in a state of barely controlled panic. The raids and the attack on Sutter and you have put everyone on full alert. If there is a war, they are determined to be ready.";
	text2 = "Of course, the assassination of Raasa Elha only doubled their efforts.";
	text3 = "When you talk to them, they suggest that you speak with General Angach. His desk is on the second floor.";
	code =
		if (gf(10,11) < 2)
			rs(2);
	break;
		
begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

//// Raasa Elha

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "Raasa Elha motions for you to join her on the stools. Armed servants come in to serve you tea, grilled meat and vegetables, and whatever other beverages you desire. Before business, she insists on showing you their humble hospitality.";
	text2 = "Finally, she sets aside her plate and cup, sighs, belches, and says, _Thank you for your patience with Ro hospitality, honored [P]. We can engage in proper ceremony now._ She rises and bows. _I am Raasa Elha, honored leader of the Gentle Coast, and I welcome the [P] of Haven to its loyal vassal._";
	text5 = "Raasa Elha sits and speaks with you. Tea and tidbits to eat are brought constantly. In this chaotic time, she is very busy, but she makes it clear that you can have as much of her time as you wish.";
	action = INTRO;

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(10,11) == 0;
	question = "_What is a Raasa?_";
	text1 = "_Ah. It is like a ... king? A lord? We are the leaders of the four provinces of the Ro, chosen by a long process of arguments and duels._";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = gf(10,11) == 0;
	question = "_I am [P] [N] of Haven. I greet you in the name of the Empire of Haven._";
	text1 = "She nods approvingly. You have a bit of a reputation as a rogue, but that was well-spoken. She sits again. _And now, at last, we can come to business. We have a lot of it, I am afraid._";
	code =
		if (gf(10,14) == 0) {
			sf(10,14,1);
			ro_faction(1);
			queen_faction(1);
			}
	break;
	
begintalknode;
	state = 10;
	nextstate = 11;
	condition = gf(10,11) == 0;
	question = "_Hi. I'm [N]._";
	text1 = "She winces at the informality. You have a bit of a reputation as a rogue, and this was expected. She regains her composure and sits again. _You wish to begin quickly, I see. We can come to business. We have a lot of it, I am afraid._";
	code =
			sf(10,14,1);
	break;
		
begintalknode;
	state = 10;
	nextstate = 11;
	condition = gf(10,11) == 0;
	question = "_Yeah. Fine. Let's get this over with._";
	text1 = "She winces at this response. You have a bit of a reputation as a rogue, but this rudeness was far more than she expected. She regains her composure and sits again. _We will come to business without delay, then. We have a lot of it, I am afraid._";
	code =
		if (gf(10,14) == 0) {
			sf(10,14,1);
			ro_faction(-1);
			queen_faction(-1);
			}
	break;

begintalknode;
	state = 11;
	nextstate = -1;
	condition = gf(0,11) < 13;
	question = "_What business do we have?_";
	text1 = "As she begins to speak, a servant runs in and whispers in her ear. _Ah,_ Raasa Elha says. _I have had word from Haven. The Queen says that she requires your presence immediately. I am supposed to tell you to ... Um, use a portal in [F0]. Then talk to General Miranda. That is what I was told. I hope it makes sense._";
	text2 = "_I would not offend the Queen by ignoring her wishes. I would be happy to deal with you once your business with your monarch is concluded._ And, with that, the audience is over.";
	action = END_TALK;
	
begintalknode;
	state = 11;
	nextstate = 12;
	condition = gf(0,11) >= 13;
	question = "_I have been sent on a diplomatic mission by the Queen._";
	text1 = "Raasa Elha nods. She clearly had already heard about this. _A full diplomatic mission from Haven. It has been a long time since we had such attention. Very long._";
	text2 = "The leader of the Gentle Coast is a matronly figure. It's hard to imagine how she became a ruler of a warrior land, even in a tame place like Laskara. Then, when she finds her tea too cold, she waves her fingers over it and, in a moment, it is steaming again. Her raw power doesn't come from her blade.";
	text3 = "_These things have a traditional process, of course. Things that must be done. I imagine your general in [F0] was provided by the Queen to guide you._";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_You seem to know all that is about to happen._";
	text1 = "Raasa Elha gives a little shrug, sips some tea, and belches lightly. _The backward provinces of the Ro don't care for these diplomatic formalities. Only the more civilized people of the Gentle Coast recognize their importance._";

begintalknode;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "_So what happens now?_";
	text1 = "_Now, customarily, you ask me, as Raasa, if I have any petitions for our masters in Haven. In other words, is anything wrong? Are there any problems that we can't fix on our own? Do we need your help?_";
	text2 = "_To which I say, officially: The Gentle Coast has no petitions for Haven. None at all._";

begintalknode;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "_Do you have any petitions for Haven?_";
	text1 = "_In other words, is anything wrong? Are there any problems that we can't fix on our own? Do we need your help?_ She smiles.";
	text2 = "_To which I say, officially: The Gentle Coast has no petitions for Haven. None at all._";

begintalknode;
	state = 13;
	nextstate = 14;
	condition = 1;
	question = "_Really? No demands?_";
	text1 = "_None at all. The Rokaj has tried to make itself a problem for Haven. The Gentle Coast will not be a part of that problem._";
	text2 = "_This concludes the petitions. You may report our cooperation to General Miranda. Haven needs to know who is on your side._";

begintalknode;
	state = 13;
	nextstate = 14;
	condition = 1;
	question = "_You seem happy to be our vassal._";
	text1 = "_Well, the Gentle Coast is. You have brought the Rokaj trade, knowledge, and prosperity. This is a very good deal for us, no matter what my backward cousins in the mountains say._";
	text2 = "_This concludes the petitions. You may report our cooperation to General Miranda. Haven needs to know who is on your side._";

begintalknode;
	state = 13;
	nextstate = 14;
	condition = 1;
	question = "_I hope the other Raasas are as cooperative._";
	text1 = "_They should be. I feel that it shows weakness and dishonor to beg Haven for help. Especially now, when our raiders dared to attack you. They shouldn't have petitions. But, alas, they might be rude enough to make requests._";
	text2 = "_This concludes the petitions. You may report our cooperation to General Miranda. Haven needs to know who is on your side._";

begintalknode;
	state = 14;
	nextstate = 15;
	condition = 1;
	question = "_What else do we need to discuss?_";
	text1 = "_Ah. Well. There is one small, traditional formality. After the Great Uprising, Haven agreed that it would not send a major force up the Pilgrimage Road into the mountains without asking permission. From the Raasa of the Gentle Coast. Me._";
	text2 = "_Just a formality, mind you._";

begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_How do I request permission?_";
	text1 = "_Just ask. It is always given._";
	text2 = "";
	
begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_Why do I need to request permission?_";
	text1 = "_Tradition, mostly. It was part of a treaty signed a century ago. Also, it shows respect. We of the Gentle Coast value Haven without question. For the wilder lands of the Rokaj, well, respect is important._";

begintalknode;
	state = 15;
	nextstate = 16;
	condition = 1;
	question = "_I am a [P] of Haven! I don't request permission. I will travel wherever I want._";
	text1 = "Raasa Elha's face is emotionless for a moment. Then, surprisingly, she smiles. _Of course! I agree completely! What a foolish tradition! You have permission to travel the Pilgrimage Road whenever you wish._";
	text2 = "_I think that is everything, then!_";
	code =
		sf(10,11,1);
		sf(80,14,1);
		toggle_quest(8,3);
		ro_faction(-2);
		toggle_quest(12,10);
	break;

begintalknode;
	state = 15;
	nextstate = 16;
	condition = 1;
	question = "_I request permission, as [P] of Haven, to travel throughout the Rokaj._";
	text1 = "Raasa Elha smiles. _I am honored by the request. I formally declare that you have permission to travel the Pilgrimage Road._";
	text2 = "_I think that is everything, then!_";
	code =
		sf(10,11,1);
		sf(80,14,1);
		toggle_quest(8,3);
		ro_faction(1);
		toggle_quest(12,10);
	break;

begintalknode;
	state = 16;
	nextstate = 17;
	condition = 1;
	question = "_The Pilgrimage Road?_";
	text1 = "_It is the main north-south road through our land. It starts north of Laskara and is marked by huge pairs of standing stones, erected by the Low Dhagans in centuries past. It leads to the Kranas Woods, then the Low Dhaga, and finally the High Litha._";
	text2 = "_And, finally, I wish to give you a humble bit of tribute, as expected for a visitor of such importance._";

begintalknode;
	state = 17;
	nextstate = 10;
	condition = 1;
	question = "_What sort of tribute?_";
	text1 = "_We are a trading port, and we gather a lot of wealth as such. We will have building materials directed to your forts. Wood and stone, to help you rebuild your defenses. And, finally, please consult our library._ She points to the door to the northeast.";
	text2 = "_The Rokaj has its own researchers, and its own arts of war. We hope you will learn some valuable skills while you are here._";
	text3 = "_And that concludes the stuffy formalities! I am sure that there is much you want to know._";
	code =
		activate_mine_resource(5);
	break;
	
begintalknode;
	state = 10;
	nextstate = 19;
	condition = gf(10,11) > 0;
	question = "_I'd like to know more about the Gentle Coast._";
	text1 = "_Of course. We are one of the four provinces of Rokaj, the lowest one, on the coast. We are the safest province. The wealthiest, because of our ingenuity and hard work._";
	text2 = "_Because of our prosperity, we are the envy of the other provinces. They are painfully jealous of us._";

begintalknode;
	state = 19;
	nextstate = -1;
	condition = 1;
	question = "_What resources do you produce?_";
	text1 = "_Well, some food. Some wood. Not much, in terms of raw materials. We produce trade. We produce knowledge. The other provinces dig up iron or chip stone. Menial work. We control the ports, so we are the ones who turn it into wealth._";

begintalknode;
	state = 19;
	nextstate = -1;
	condition = 1;
	question = "_This is the 'safest' province?_";
	text1 = "_Of course. We have risen above the constant savagery and raids and clan warfare that plague the highlands. We will be seen as a civilized people in the eyes of the outside world._";

begintalknode;
	state = 19;
	nextstate = 20;
	condition = 1;
	question = "_The other provinces envy you?_";
	text1 = "_Of course they do. We are safer. More civilized and wealthier. In turn, they cling to their backward ways._";
	text2 = "_They constantly whine about us. They say we are not true to the ways of the Ro. False. Every Ro has a mountain within, us as much as all of them._";

begintalknode;
	state = 20;
	nextstate = -1;
	condition = 1;
	question = "_Every Ro is a mountain?_";
	text1 = "_That is what we believe. Inside me, inside all of us, is Gentle Knowing, Working, and Deep Truth. The balance of the three makes a Ro._";
	text2 = "_As you travel, you should read our writings. Look around this hall. There are some books you might find illuminating._";

begintalknode;
	state = 20;
	nextstate = -1;
	condition = 1;
	question = "_Are you true to the ways of the Rokaj?_";
	text1 = "She sits up extra-straight. _I am absolutely true. There are moments where I fear I am the truest Ro. It is a great burden. I will carry it._";

begintalknode;
	state = 20;
	nextstate = -1;
	condition = 1;
	question = "_What faults have they found with you?_";
	text1 = "_They think we are decadent. We don't fight enough. We don't waste enough of our time in squabbles and duels of honor and raiding. They don't see that their old world is past, and Haven brings a new, better way._";

begintalknode;
	state = 20;
	nextstate = 21;
	condition = 1;
	question = "_Tell me about the other provinces._";
	text1 = "_They are the Kranas Woods, the Low Dhaga, and the High Litha. You will have to visit all of them for a full diplomatic tour, I am afraid. All of them have rebelled against Haven in the past. All pretend to be calm. For now._";

begintalknode;
	state = 21;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about the Kranas Woods._";
	text1 = "_A heavily forested region to the north and west. An enchanted land. Their forest has a natural magic in it. So they worship it, of course, in their backwards way._";
	text2 = "_A good source for wood, precious amber, and the products of their iron mines._";
	
begintalknode;
	state = 21;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about the Low Dhaga._";
	text1 = "_The rocky hills to the northeast. Builders. Stone workers. Clannish brutes, warped by the dry, rocky lands they inhabit. A lot of the raiders who attacked you were from there. It is their way._";

begintalknode;
	state = 21;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about the High Litha._";
	text1 = "_Ah. Our highest peak, our hardest people. It is a remote land, lightly populated. It is also a land of ghosts. The Lithans drink the quicksilver they mine to speak with their spirits. Sort of a mad place._";
	text2 = "_They see themselves as the judges of the Rokaj, the keepers of our true spirit. They look down on us, literally and metaphorically._";

begintalknode;
	state = 10;
	nextstate = 22;
	condition = gf(10,11) > 0;
	question = "_Tell me about the Raasas._";
	text1 = "_We are the four leaders of our four provinces. Don't think of us as kings and queens, though. We don't have that much power. The Rokaj is a land of clans, fighting and joining and fighting again, an ancient, impossible tangle._";
	text2 = "_Our main jobs are dealing with outsiders, settling the more difficult disputes between clans, and being moral leaders. We keep the Deep Truth when life makes it easy to forget it._";

begintalknode;
	state = 22;
	nextstate = -1;
	condition = 1;
	question = "_How did you become a Raasa?_";
	text1 = "_Oh, it is a process. The clans put forward their candidates. There is a long period of negotiation and argument. Occasionally, the Geld Nas is paid to rid us of a troublesome applicant._";
	text2 = "_Finally, the clan leaders ascend to Prova Krug to have a final argument and select the new Raasa._";

begintalknode;
	state = 22;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about the clans._";
	text1 = "_Some are tiny families. Some are clumps of dozens of people. Some clans, like mine, are huge, sprawling affairs with hundreds of family members and histories that go back centuries._";

begintalknode;
	state = 22;
	nextstate = -1;
	condition = 1;
	question = "_I'd like to know more about the other Raasas._";
	text1 = "_I would rather not say. I do not like them. They do not like me. I could not give you an honest account. You will meet them soon enough, if you carry out your mission._";

begintalknode;
	state = 22;
	nextstate = 23;
	condition = 1;
	question = "_You mentioned Deep Truth?_";
	text1 = "_Ah. Yes. The Deep Truth is what any Ro truly believes. When outsiders invade us, we store the true ways of our people in our hearts. We can say whatever we need to say to survive, as long as our Deep Truth is held within._";
	
begintalknode;
	state = 23;
	nextstate = -1;
	condition = 1;
	question = "_So the Rokaj will always lie to me?_";
	text1 = "_Hmmm. No. Not always. When doing business, we speak plain. However, when talking to a Havenite, we may tend to say what you want to hear. Our true beliefs need to be a private thing._";

begintalknode;
	state = 23;
	nextstate = 24;
	condition = 1;
	question = "_And what is your Deep Truth?_";
	text1 = "Raasa Elha smiles. _Oh, I am but kidding. The Deep Truth is a practice of the barbaric highlands. We of the Gentle Coast have been civilized by trade and commerce with the outside world. We don't need such elaborate mental games._";

begintalknode;
	state = 24;
	nextstate = 25;
	condition = 1;
	question = "_You don't need a Deep Truth?_";
	text1 = "_No. We have power, wealth, and security. Hiding one's Deep Truth is a game for the weak. Down here, we're proud members of the Empire of Haven. We don't need to hide anything._";

begintalknode;
	state = 25;
	nextstate = 10;
	condition = gf(10,12) == 0;
	question = "_But if you had a secret Deep Truth, isn't that what you would say to conceal it?_";
	text1 = "Raasa Elha is startled, but only for a moment. Then she laughs. _You learn fast, [P]. I think you have nothing to worry about when you talk to the other Raasas._";
	text2 = "_Anything else?_";
	code =
		sf(10,12,1);
	break;

begintalknode;
	state = 25;
	nextstate = 10;
	condition = gf(10,12) == 0;
	question = "_I am glad to hear it._";
	text1 = "_I wish, for your sake, you could spend all your time here with the civilized people of the coast. Still, your Queen orders you into the highlands. I'm sure you will prevail. Haven always does._";
	text2 = "_Anything else?_";
	code =
		sf(10,12,1);
	break;
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(10,11) > 0;
	question = "_I need to talk about my mission._";
	text1 = "_Yes. A full diplomatic mission. You must interact with both your vassal and the Havenites who control it. You must evaluate your three governors to see if they are competent. You must make sure the Raasas have no pressing petitions._";

begintalknode;
	state = 26;
	nextstate = -1;
	condition = 1;
	question = "_What advice can you give me about the governors?_";
	text1 = "_They are noble Havenites, chosen for their skill and influence. However, Haven has not paid a lot of attention to the Ro in recent decades. You may find some mild correction necessary._";

begintalknode;
	state = 26;
	nextstate = -1;
	condition = 1;
	question = "_How should I deal with the other Raasas?_";
	text1 = "_Firmly. The provinces of the highlands will try to squeeze every bit of advantage out of you. All they should do is grovel for forgiveness, now that raiders dared to try to kill you._";

begintalknode;
	state = 26;
	nextstate = 27;
	condition = 1;
	question = "_Let's talk about the raiders._";
	text1 = "Raasa Elha shakes her head. _This is shameful. No Ro would ever admit this, but I must. I am ashamed. And afraid. Haven was finally paying attention to us, and we responded in such a cowardly way._";

begintalknode;
	state = 27;
	nextstate = -1;
	condition = 1;
	question = "_Where did the raiders come from?_";
	text1 = "_The raiders attacked from the Low Dhaga. This is not a surprise. The savages of the Low Dhaga are always raiding our lands. Where did the raiders come from originally? Who sent them? We don't know._";
	text2 = "_We will find out, though._";

begintalknode;
	state = 27;
	nextstate = -1;
	condition = 1;
	question = "_What is being done about them?_";
	text1 = "_Well, your Seventh Army is preparing for war. This has gotten the attention of the other Raasas who allowed this crime to happen._";
	text2 = "_What is done, I think, is influenced by you being here. Once the Rokaj sees that Haven is attending to their needs again, things will calm down. Then the Raasas will find the villains and deliver them to you._";

begintalknode;
	state = 27;
	nextstate = -1;
	condition = 1;
	question = "_Why are you afraid?_";
	text1 = "_Because the last time the Rokaj rose up against Haven, we ended up with the Great Uprising. War. Bloodshed. Endless battles in high, icy valleys. A few dead Havenites. Lots of dead Ro. Shattered walls. Lost rights._";
	text2 = "_This must be avoided!_";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(10,11) > 0;
	question = "_That is all I need._";
	text1 = "Raasa Elha rises. _Then I wish you the best of journeys. It is good that you are here, good that this mission is taking place. In the end, [P], you may save us foolish Ro from ourselves._";
	action = END_TALK;
	
// Angach

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "The general of the Seventh Army of Haven rises to greet you. He is exactly what you would expect for a general in the Rokaj. Tall. Aging. Grizzled. Scarred. The veteran of many wars. In a land like the Ro, with a history of rebellion, this is the sort of man you want.";
	text2 = "He bows to you and says, _Welcome, [P]. I am General Angach. I command our troops to the south. I assure you that we are ready for whatever comes. And please let me give you my deepest apology._";
	text5 = "General Angach continues to give you as much of his attention as he can spare. He is constantly receiving messages from the field and barking out orders in return. The raiders caught Haven by surprise. He is determined to not let it happen again.";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = 41;
	condition = gf(10,13) == 0;
	question = "_Apologize to me? For what?_";
	text1 = "_For leaving you exposed. For letting the raids form and for allowing them to threaten you. It was an unforgivable mistake, and it won't happen again._";

begintalknode;
	state = 40;
	nextstate = 41;
	condition = gf(10,13) == 0;
	question = "_You better apologize!_";
	text1 = "He bows his head. The soldiers get very quiet. _We allowed the raids to form, and we allowed them to threaten you. It was an unforgivable mistake, and it won't happen again._";

begintalknode;
	state = 41;
	nextstate = 40;
	condition = 1;
	question = "_Apology accepted._";
	text1 = "_Thank you, [P]. We are eager to deal some harsh discipline to the Rokaj. However, the Queen has instructed us to give you time to do your work. When it is time, we will be ready to strike. We'll make them pay._";
	code =
		violence(-1);
		queen_faction(1);
		sf(10,13,1);
	break;

begintalknode;
	state = 41;
	nextstate = 40;
	condition = 1;
	question = "_Your apology is not accepted. You need to fix the problem._";
	text1 = "_Of course, [P]. We are eager to deal some harsh discipline to the Rokaj. However, the Queen has instructed us to give you time to do your work. When it is time, we will be ready to strike. We'll make them pay._";
	code =
		queen_faction(1);
		sf(10,13,1);
	break;

begintalknode;
	state = 41;
	nextstate = 40;
	condition = 1;
	question = "_You are stripped of your rank immediately!_";
	text1 = "Now things get very tense. General Angach says, _I can see why you want that. I know I deserve it. But ... I don't serve under you. I answer to the Queen and Prince Sutter only._";
	text2 = "_Don't worry, though. We'll make up for our lapses. When we get the word, we'll strike! We'll make the Rokaj pay!_";
	code =
		queen_faction(-1);
		sf(10,13,1);
	break;

begintalknode;
	state = 41;
	nextstate = 40;
	condition = 1;
	question = "_For this failure, you are to be taken out and flogged._";
	text1 = "General Angach is shocked, but he keeps his composure. He doesn't move, though. He says, _I can see why you want that. You are angry. But ... I don't serve under you. I answer to the Queen and Prince Sutter only._";
	text2 = "_Don't worry, though. We'll make up for our lapses. When we get the word, we'll strike! We'll make the Rokaj pay!_";
	code =
		queen_faction(-1);
		violence(1);
		sf(10,13,1);
	break;
	
begintalknode;
	state = 40;
	nextstate = 42;
	condition = gf(10,13) > 0;
	question = "_I'd like to discuss the Rokaj._";
	text1 = "_Of course. I imagine you didn't plan to spend much time in this land of scoundrels. The Gentle Coast is nice. They've bought their share of luxuries. It's when you get up into the highlands, the hills and mountains, that you have to be paranoid._";

begintalknode;
	state = 42;
	nextstate = -1;
	condition = 1;
	question = "_You don't sound fond of them._";
	text1 = "Angach thinks about this. _I've been here for ten years, and I don't know if I like them or not. They are strong. They are brave. The Ro of the highlands can withstand anything. They are cheery and generous._";
	text2 = "_I'm just never sure when they're about to slit my throat._";

begintalknode;
	state = 42;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about the Gentle Coast._";
	text1 = "_It's the Ro's name for it, and I think they mean it as an insult. The coast is rich. It's made the people here soft. The Ro of the highlands hate them for it, but Haven protects them._";
	text2 = "_Don't worry about this province. We are in control here._";

begintalknode;
	state = 42;
	nextstate = 43;
	condition = 1;
	question = "_Are you always paranoid?_";
	text1 = "_Of course. You always have to be, with the Rokaj. After all, a century ago everything seemed fine. Calm and peaceful. Then the disaster happened._";

begintalknode;
	state = 43;
	nextstate = -1;
	condition = 1;
	question = "_What disaster?_";
	text1 = "_The Great Uprising. Overnight, the Ro were slaughtering us in our beds. Haven put the rebellion down, of course, but it was a bloody affair. That's why we don't let their cities have proper walls anymore._";
	text2 = "_Don't ever be complacent around the Ro. And don't worry. We're ready to fight._";

begintalknode;
	state = 40;
	nextstate = 44;
	condition = gf(10,13) > 0 && gf(10,11) <= 1;
	question = "_Tell me about the Raasa._";
	text1 = "_I only ever deal with Raasa Elha. She's a sharp one. She's loyal to Haven, and she's a powerful mage. She controls the Gentle Coast well. Wish all the Raasas were like her._";
	text2 = "_The rest of the Rokaj hates her._";

begintalknode;
	state = 44;
	nextstate = -1;
	condition = 1;
	question = "_Raasa Elha is hated?_";
	text1 = "_She is loyal to Haven. She believes the Rokaj is helped by being a vassal. Much of the rest of the Ro sees us as conquerors and Raasa Elha as the lead collaborator._";

begintalknode;
	state = 40;
	nextstate = 45;
	condition = gf(10,13) > 0 && gf(10,11) > 1;
	question = "_Tell me about the Raasa Elha's assassination._";
	text1 = "_What a disaster. Couriers brought a package here. Said it was a gift from Haven. Took it right to her hall. By the time I heard about it and sent runners, she had opened it._";
	text2 = "_It was a magical trap. Turned her to ash._";

begintalknode;
	state = 45;
	nextstate = -1;
	condition = 1;
	question = "_Who killed Raasa Elha?_";
	text1 = "_It had to be the Geld Nas. The assassins of the Rokaj. The question is, who paid them?_";
	text2 = "_It's bad news. The Geld Nas often serve as enforcers, who punish those who stray too far from the old ways of the Rokaj. If that is why Raasa Elha was killed, it means trouble. War._";

begintalknode;
	state = 45;
	nextstate = -1;
	condition = 1;
	question = "_What does all this mean?_";
	text1 = "_It means the raiders that attacked you weren't just a random, screaming band of idiots. They were part of a larger, more dangerous effort. My soldiers are readying for war._";

begintalknode;
	state = 45;
	nextstate = 46;
	condition = 1;
	question = "_Who is the Raasa now?_";
	text1 = "_That will take some time to work out. Right now, someone named Malwen is acting as Raasa. A young, pliable fellow. Soft. Don't expect much help from him._";

begintalknode;
	state = 46;
	nextstate = -1;
	condition = 1;
	question = "_How will the next Raasa be selected?_";
	text1 = "_Not sure. The Rokaj is very simple, but very complicated at the same time. I think it involves a hundred clans yelling and stabbing for a year or two._";
	text2 = "_Then they climb to a place called Prova Krug, one of the highest peaks of the Rokaj. It's ... odd._";

begintalknode;
	state = 40;
	nextstate = 47;
	condition = gf(10,13) > 0 && gf(0,11) < 14;
	question = "_What is the word from Haven?_";
	text1 = "_We have our orders from the Queen. You are to follow orders and do diplomacy. Meanwhile, we prepare for war._";

begintalknode;
	state = 47;
	nextstate = -1;
	condition = 1;
	question = "_How are you preparing?_";
	text1 = "_Training. Maintaining our gear. Scouting. Reviewing histories of the Great Uprising. The Ro of the mountains think that they are better than Haven. When the time comes, we will show them the true power that Haven can unleash._";

begintalknode;
	state = 47;
	nextstate = -1;
	condition = 1;
	question = "_Do you think Haven can beat the Rokaj in battle?_";
	text1 = "Before Angach can speak, your soldiers raise their arms and let out a wild, angry cheer. The General grins. _It will be hard and bloody, but they can't win against us. The only question is how much slaughter there will be._";

begintalknode;
	state = 47;
	nextstate = -1;
	condition = 1;
	question = "_How can war be prevented?_";
	text1 = "_By convincing the Rokaj to lay down their arms, make amends for the raid, and obey the treaty they signed with us. They have to submit. Now that they dared to raise arms against Prince Sutter and you, there is no other way._";

begintalknode;
	state = 47;
	nextstate = 40;
	condition = 1;
	question = "_The Rokaj tried to kill me. They should be strongly punished._";
	text1 = "_We agree. We're ready to put this whole vassal to the torch, if the Queen gives the order. But ... If you can find a way to use diplomacy to prevent it, it would be better for all._";

begintalknode;
	state = 47;
	nextstate = 40;
	condition = 1;
	question = "_What can I do to prevent war?_";
	text1 = "_Honestly, I don't know. You will have to do your diplomacy and talk to them. Maybe you can find a way. I wish you luck. We don't want to put this place to the torch._";
	text2 = "_But we will, if the Queen gives the order._";

begintalknode;
	state = 40;
	nextstate = 48;
	condition = gf(10,13) > 0 && gf(0,11) >= 14;
	question = "_I have completed my diplomatic mission._";
	text1 = "General Angach nods. _General Miranda already sent word. We imagine you'll be using the portal in [F0] to return to safety. Then your army can do its job._";

begintalknode;
	state = 48;
	nextstate = -1;
	condition = 1;
	question = "_Maybe there is more I can do here._";
	text1 = "_Well._ He scratches his chin. _I'm just a general. You're a [P]. You can do what you want. But if the Queen tells you to do something, maybe that's the best thing to do. You don't have to remake the world. That's what you have an army for._";


// Lheure

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = "This elderly man is native Ro, but he is wealthy and fancy. He wears fur garb and a sword at his belt, but they are all stylish, expensive, and completely unaffected by any sort of combat. He smiles and bows deeply.";
	text2 = "_Welcome, [P] of Haven! I am so honored by your visit! I am Crafter Lheure, trader of luxury goods. It is always a delight to be visited by envoys from civilized lands._";
	text5 = "Crafter Lheure chats with you. Occasionally, he offers you a cup of tea or shows you the fine products of the Rokaj. Polished bits of lightly glowing amber. Flasks of pure quicksilver, ready to be made into potions that bring enlightenment.";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = 71;
	condition = 1;
	question = "_I would like to trade with you._";
	text1 = "_Of course! Alas, I tend to deal with raw materials in bulk. Still, we have a few finished objects that might be of value in your journey._";

begintalknode;
	state = 71;
	nextstate = -1;
	condition = 1;
	question = "_Let me see your wares._";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Crafter Lheure", "shopdesc.", 23,0,0);	
	break;


begintalknode;
	state = 71;
	nextstate = 70;
	condition = 1;
	question = "_I don't need anything else._";
	text1 = "_Of course. I am honored by your attention._";

begintalknode;
	state = 70;
	nextstate = 72;
	condition = 1;
	question = "_What sort of things do you usually trade?_";
	text1 = "_The Rokaj makes raw materials and a few crafts that are much in demand in the more civilized lands of Haven. They are produced in the savage highlands, brought to our port, and sent out to the world._";
	code =
		sf(10,26,1);
	break;
	
begintalknode;
	state = 72;
	nextstate = -1;
	condition = 1;
	question = "_What do the highlands produce?_";
	text1 = "_Well, there are the mundane things. Meat and stone and wood. Some of it is of high enough quality to deserve space on a ship._";
	text2 = "_We also trade precious, ancient amber. Quicksilver and crystals. Unique varieties of wood. All highly in demand from mages and craftsfolk throughout our Empire._";

begintalknode;
	state = 72;
	nextstate = -1;
	condition = 1;
	question = "_What do you get in return?_";
	text1 = "_The Rokaj is hungry for raw materials and new knowledge from all over our Empire. We seek out precious metals, books of magical knowledge, and other things we have difficulty providing for ourselves._";

begintalknode;
	state = 70;
	nextstate = 73;
	condition = gf(10,26) > 0;
	question = "_You called the Ro of the highlands savage._";
	text1 = "_Ah. I'm afraid it is not my place to discuss politics, especially with a [P]._ He nervously wipes a spot off his leather vest. You can see that it has plates of metal set into it.";
	text2 = "_We are deeply ashamed that Ro raiders attacked you. But ... We small folk do need to be careful what we say._";

begintalknode;
	state = 73;
	nextstate = -1;
	condition = 1;
	question = "_You like being a vassal of Haven?_";
	text1 = "_Of course! You bring us a life of safety and prosperity. In the Gentle Coast, we don't spend all our time hacking at each other, settling duels and scraping for survival._";

begintalknode;
	state = 73;
	nextstate = -1;
	condition = 1;
	question = "_Nice armor._";
	text1 = "_Oh, thank you! It is a recent fashion. Wearing armor like this is a way we of the Rokaj keep in touch with our roots._ You note that the metal plates are very thin. Light and convenient, but utterly useless in battle.";

begintalknode;
	state = 73;
	nextstate = 74;
	condition = 1;
	question = "_Why do you have to be careful with what you say?_";
	text1 = "_Well, the Gentle Coast is not immune to all of the savagery of the Rokaj. There are some backward souls who want to be free of Haven's influence. They have been known to send Geld Nas killers in the night._";
	text2 = "_These are the sorts of savages who send raiders down into the Gentle Coast. Recently, I lost two caravans! To murderers and thieves!_";
	code =
		if (gf(10,15) > 1)
			rs(2);
	break;
	
begintalknode;
	state = 74;
	nextstate = 75;
	condition = gf(10,15) <= 1;
	question = "_You lost some caravans?_";
	text1 = "_Two of them. One going north, one going east. They vanished. No signs of where they were lost or who took them._";
	text2 = "_I offered a bounty to anyone who could find them and the brave folk who escorted them. No takers yet. It is too dangerous a time._";
	code =
		sf(10,15,1);
		toggle_quest(21,1);
	break;
	
begintalknode;
	state = 75;
	nextstate = -1;
	condition = 1;
	question = "_Where were they lost?_";
	text1 = "_One went east. Scavengers had recovered some nice items from the Erudico ruins there. The caravan was going to pick those up._";
	text2 = "_One went north. It was going to the Kranas Woods to pick up some artisanal-grade lumber. It never entered the woods._";

begintalknode;
	state = 75;
	nextstate = -1;
	condition = 1;
	question = "_How might one know that a caravan was yours?_";
	text1 = "_Each of our wagons has a quarter-moon painted on the side. It is the symbol of my clan. I only say this to make conversation. I would never ask a [P] of Haven to notice my small affairs._";
	text2 = "He genuinely seems to mean this.";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = gf(10,15) == 1 && gf(164,11) + gf(177,11) == 1;
	question = "_I found one of your caravans._";
	text1 = "_You describe the caravan. Crafter Lheure is upset. _This is appalling. That such danger has been allowed to fester in the Gentle Coast. Thank you for letting me know what happened to one of my caravans. Alas, the other is still lost._";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = gf(10,15) == 1 && gf(164,11) > 0 && gf(177,11) > 0;
	question = "_I found your two caravans._ (Describe where they were.)";
	text1 = "Crafter Lheure is shocked and beside himself with gratitude. _This is a kind deed, [P]. Haven has done little in our land for so long. I never expected that a outsider would actually bother to help us. I will make sure word spreads of what you have done._";
	text2 = "_Of course, you will be rewarded. I will have raw supplies directed to your forts, so that you can rebuild. I will also have one of our storage bays unlocked. Please feel free to take whatever you find._";
	code = 
		set_flag(10,15,2);
		toggle_quest(21,10);
		sf(10,20,1);
		ro_faction(2);
		award_party_xp(SMALL_QUEST_XP);
		change_coins(100,1);
		activate_mine_resource(6);
	break;		


// malwen

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = "You meet a young man, barely an adult. He looks small and nervous in the expensive, ceremonial armor and weaponry of the Gentle Coast. He gives you a brief, twitchy bow when you approach. _Hello, [P] [N]. I am Malwen._";
	text2 = "He sits on a stool across the room from where an explosion happened. He has been placed temporarily in charge of the Gentle Coast, and he seems entirely uncomfortable with the job.";
	text5 = "Malwen says, _Is there anything else I ... I can help you with? Honored guest?_";
	text6 = "He sits on a stool across the room from where an explosion happened. He has been placed temporarily in charge of the Gentle Coast, and he seems entirely uncomfortable with the job.";
	action = INTRO;
	code =
		if (gf(10,11) < 2) {
			rs(2); rs(6);
			}
	break;
	
begintalknode;
	state = 100;
	nextstate = -1;
	condition = gf(10,11) <= 1;
	question = "_What do you do here?_";
	text1 = "_I am an assistant to Raasa Elha. I do what I can to help. Fetch things. Watch. Listen. My father wants me to try to be Raasa someday, to keep the position in the clan. So I'm here._";
	text2 = "He doesn't seem particularly ambitious.";

begintalknode;
	state = 100;
	nextstate = 101;
	condition = gf(10,11) <= 1;
	question = "_Tell me about Raasa Elha._";
	text1 = "_Oh! She is from our clan. She is a great leader! And she knows a lot of magic, though she doesn't show it off. She's a real warrior. There aren't many of those in the Gentle Coast._";
	text2 = "_There doesn't need to be, though. Not when we have Haven._";

begintalknode;
	state = 101;
	nextstate = -1;
	condition = 1;
	question = "_You are a wealthy clan._";
	text1 = "_Yes! Wealthy and influential, one of the best in the Gentle Coast! Raasa Elha says it is because of Haven. Their influence changes us, civilizes us, makes us wealthy, she says. And that is why we have so much power._";

begintalknode;
	state = 101;
	nextstate = -1;
	condition = 1;
	question = "_What do you think of Haven?_";
	text1 = "_I ... Well, I have met very few Havenites. You don't send many envoys here. Haven't for a long time. But you do bring us trade. Lots of money. Lots of precious goods. I see them all come in. Haven brings us a lot of things._";
	text2 = "He is growing uncomfortable. Talking to a [P] does that to a lot of people.";

begintalknode;
	state = 100;
	nextstate = 110;
	condition = gf(10,11) > 1;
	question = "_You are the acting Raasa?_";
	text1 = "He looks nervously at the scorched corner of the meeting hall. _Yes. I am. For a short time, hopefully. My clan said I would act for Raasa Elha. Nobody contradicted them. While you are here, this is not the time for a battle, they said._";
	text2 = "_It is not a job I asked for._";

begintalknode;
	state = 110;
	nextstate = -1;
	condition = 1;
	question = "_What do you plan to do now?_";
	text1 = "_I could never live up to Raasa Elha's example. She did so, so much for us. I will try to ease your way. Do everything I can to make your mission a success. Then I will go home._";

begintalknode;
	state = 110;
	nextstate = 102;
	condition = 1;
	question = "_When will you be replaced?_";
	text1 = "_After you leave. That is what I am told. Then there will be all of the politics. Things I don't understand. Debate. Trading. A big ceremony on Prova Krug. I will have to be there, up on that icy mountain, to surrender the post._ He shudders.";

begintalknode;
	state = 102;
	nextstate = -1;
	condition = 1;
	question = "_Any plans to keep the position?_";
	text1 = "_No! Not a one! I truly mean it. If they suspected otherwise, the Geld Nas would come for me._";
	text2 = "He looks at the patch of scorched floor again.";

begintalknode;
	state = 100;
	nextstate = 103;
	condition = gf(10,11) > 1;
	question = "_I want to know about Raasa Elha's death._";
	text1 = "_I don't know much. I wasn't here. I was running errands. I was in the trading hall when we all felt the explosion. I ran here right away, just when they were starting to scrape up the bodies._";

begintalknode;
	state = 103;
	nextstate = -1;
	condition = 1;
	question = "_How was the Raasa killed?_";
	text1 = "_A magical trap. A courier brought a box. Said it was from Haven. A ceremonial gift from you. He brought it to the Raasa. She opened it, and ... Magic. Boom. That was the end, in an instant._";

begintalknode;
	state = 103;
	nextstate = -1;
	condition = 1;
	question = "_Who was here with the Raasa?_";
	text1 = "_The courier and two guards. All killed by the shockwave._";

begintalknode;
	state = 103;
	nextstate = -1;
	condition = 1;
	question = "_Was there any chance to save Raasa Elha?_";
	text1 = "_No. All that was left of her was smoky, charred little bits. The assassins wanted to make sure they succeeded._";
	text2 = "_It is such a shock. We can't believe someone dared kill such a strong ally of Haven. But ... They did try to kill you. They are mad._";
	
begintalknode;
	state = 103;
	nextstate = 104;
	condition = 1;
	question = "_Who do you think killed Raasa Elha?_";
	text1 = "_It was a powerful device. Strong, concentrated magic, the sort that not even the Erudico can work. It has to have been the Geld Nas._";

begintalknode;
	state = 104;
	nextstate = 105;
	condition = 1;
	question = "_The who?_";
	text1 = "_Oh. The assassin's guild of the Rokaj. Someone decided that a strong leader who was such a close ally of Haven had to die. And then they must have paid the Geld Nas a lot. A lot! And convinced them, it was for the good of the Ro that she be gone._";
	text2 = "_The question is: Who paid them? It is more than I can understand._";

begintalknode;
	state = 105;
	nextstate = -1;
	condition = 1;
	question = "_And what do you plan to do about it?_";
	text1 = "_Me? I will hold this post, try to survive, wait to be replaced, and run home. I am not stubborn like the High Lithans. I know when I am outmatched._";

begintalknode;
	state = 105;
	nextstate = 100;
	condition = 1;
	question = "_Well, I hope you stay safe._";
	text1 = "Raasa Malwen summons a scrap of resolve. _Thank you, [P]. It is out of my hands. If they decide to kill me, they will. When the time comes, I will accept my fate with the dignity of the Rokaj._";

begintalknode;
	state = 105;
	nextstate = 100;
	condition = 1;
	question = "_Maybe you should go out and get vengeance._";
	text1 = "Raasa Malwen actually laughs. _Don't worry. My clan has plans. The Geld Nas are sure to get a big payment from us someday. We can't let this insult go unanswered._";
	text2 = "_I have been told to not get involved._";

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "_I'll be going now._";
	text1 = "_Thank you for the honor of your visit._";
	text2 = "Raasa Malwen looks at the site of the explosion for the thousandth time today and shudders.";
	action = END_TALK;
	code =
		if (gf(10,11) < 2)
			rs(2);
	break;
	
// ingrian

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = "This woman easily stands out in the prosperous city of Laskara. Her leather jerkin is dirty and shows the signs of hard travel. Her hair is chopped unevenly and her hands are calloused. When she looks at you, she is curious, but she shows no awe.";
	text2 = "_Hello, Havenite. I am Ingrian. I am a trader from the Kranas. I am waiting for a shipment to be readied. I have a moment if you want to learn._";
	text5 = "Ingrian sits with you and talks. She is a serious woman and lacking in trust, but her job has a lot of downtime. She is curious enough about Haven to talk to you.";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = 131;
	condition = 1;
	question = "_You say you are from the Kranas?_";
	text1 = "_The Kranas Woods. North and west. The most beautiful of the provinces of the Ro. We are wrapped in our forest, and it makes us strong._";
	text2 = "Now that she is talking to you, you note that she looks over her shoulder frequently. She tries to hide her nervousness, but she can't disguise it from you.";

begintalknode;
	state = 131;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about your forest._";
	text1 = "_It is a living thing, in a way that other woods are not. The whole forest is one mind, speaking to us through our groves. We feed and protect our woods, and they shelter us._";
	text2 = "Her voice lowers to a whisper. You can barely hear her. _Haven has been hacking at it for years, and we have withstood it. We hope the Kranas can survive your wisdom._";

begintalknode;
	state = 131;
	nextstate = 132;
	condition = 1;
	question = "_You seem ill at ease._";
	text1 = "_I know who you are. I know that some fools tried to murder you. They got what they deserved. The Kranas is strong and proud, but we are not fools. We do not want war with Haven._";

begintalknode;
	state = 132;
	nextstate = -1;
	condition = 1;
	question = "_You are scared of war?_";
	text1 = "She sits up straight. _We are scared of nothing. But ... War brings fires. Soldiers tramp through our forest, hurting it. When the Great Uprising happened, much of our woods were burned. It took many years to repair the damage._";

begintalknode;
	state = 130;
	nextstate = 133;
	condition = 1;
	question = "_What brings you to the Gentle Coast?_";
	text1 = "_I am our clan's trader. I organize caravans. I come here. I barter. Sell our iron and amber for what we need. I also check in on our clan's claim in the Gentle Coast._";

begintalknode;
	state = 133;
	nextstate = -1;
	condition = 1;
	question = "_What do you think of the Gentle Coast?_";
	text1 = "She looks at the other traders. The wealthy locals, with their finery and their mostly-useless weapons. _They are Rokaj, like us. They bring wealth. They keep the outsiders happy. I see no reason to hate them._";
	text2 = "Her words seem peaceful, but her eyes are cold. She has no love for them.";
	
begintalknode;
	state = 133;
	nextstate = -1;
	condition = 1;
	question = "_You seem underdressed for this city._";
	text1 = "_Yes. My clothes are simple and crude. The Kranas Woods are full of simple folk. Not like the enlightened, beautiful folk of the coast. We should feel lucky to have them to guide us and show us our flaws._";

begintalknode;
	state = 130;
	nextstate = 134;
	condition = 1;
	question = "_Have the recent raids caused you any trouble?_";
	text1 = "She looks away and thinks on this. When she speaks again, her voice is soft. _They have. I shouldn't be dealing with Havenites. Especially ones of your rank. But ... I am a trader, and we have needs._";
	text2 = "_When the raids started, we lost our mine. We have a claim in the Gentle Coast, and it was taken._";
	text3 = "_They did. Thanks to you, we are recovering._";
	action = DEP_ON_SDF 10 16 1;
	
begintalknode;
	state = 134;
	nextstate = 135;
	condition = gf(10,16) <= 1;
	question = "_Tell me about your mine._";
	text1 = "_The woods of the Kranas are angry. They have been cut and burned too much, and they act out. They attack us. Their infection has spread to our lone claim in the Gentle Coast._";
	text2 = "_The Rokaj will not help us, not in a time of raids and possible war. But you might. Haven has the strength to restore our mine to us._";
	code = 
		set_flag(10,16,1);
		toggle_quest(22,1);
	break;

begintalknode;
	state = 135;
	nextstate = -1;
	condition = 1;
	question = "_Where can I find this mine?_";
	text1 = "_It is north of Laskara and a little west, dug deep into the mountains to the northwest._";

begintalknode;
	state = 135;
	nextstate = -1;
	condition = 1;
	question = "_And why should I be interested in this?_";
	text1 = "_Because, if you restore our mine, we will give you a portion of its iron and other products. We know Haven needs to rebuild. We can help you, if you help us._";
	text2 = "_If you accept this deal, go to the mine. The Kranas there will tell you more about what is happening._";

begintalknode;
	state = 130;
	nextstate = -1;
	condition = gf(10,16) == 1 && gf(11,11) > 0;
	question = "_I cleared out your mine for you._";
	text1 = "Ingrian nods. _I also received word. You chopped back the roots of our angry forest without a problem._ She writes a few letters and sends them out. _It is done. A generous portion of our wealth will now be sent to your forts._";
	text2 = "_We have had a good trade. I only hope I am not made to pay for it._";
	code = 
		set_flag(10,16,2);
		toggle_quest(22,10);
		activate_mine_resource(7);
		award_party_xp(SMALL_QUEST_XP);
	break;		

begintalknode;
	state = 130;
	nextstate = -1;
	condition = gf(10,16) > 1;
	question = "_Haven needs more iron._";
	text1 = "_We know. Haven consumes. You are a mighty people, and you crush us with your will._";
	text2 = "_When you seek iron, you will need to go to the Kranas Woods. That is where it is best found._";


// umista

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = "There is a wiry, angry man with bronze skin standing in the middle of the inn. He is drunk and shouting. The other patrons, all locals, are doing their best to ignore him. _The Gentle Coast is full of weaklings,_ he shouts. _Useless weapons and no spines, always licking the shoes of Haven._";
	text2 = "He continues his ranting. At one point, he says, _I am Umista, a proud stonecutter of the Low Dhaga, and I won't bow. To anyone. Haven or Ro._ Then he notices you.";
	text5 = "Umista's outburst has tired him out. He sits, contented, at one of the long tables. He doesn't mind your company, despite his ranting.";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = gf(10,17) == 0;
	question = "Listen quietly.";
	text1 = "He looks you boldly in the eye. Then he grins. Much to the relief of the other patrons, he walks to a chair and sits opposite you. _Have a seat, Haven. Drink some nice, thick, fermented milk. Enjoy the Ro, until you abandon us again._";
	code =
		sf(10,17,1);
	break;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = gf(10,17) == 0;
	question = "_Want to say any of that to my face?_";
	text1 = "He looks you in the eye and curls his lip. You have to admit he looks pretty fierce. Then he grins. Much to the relief of the other patrons, he walks to a chair and sits opposite you.";
	text2 = "_I don't want a fight, [P]. You're a guest! Have a seat. Drink some nice, thick, fermented milk. Enjoy the Ro, until you abandon us again._";
	code =
		sf(10,17,1);
	break;
	
begintalknode;
	state = 160;
	nextstate = 161;
	condition = gf(10,17) > 0;
	question = "_You seem pretty angry._";
	text1 = "_The Low Dhaga is an angry place. The rock and the winds bring it out of us. Some of us even become raiders, roaming the Gentle Coast and making big mistakes. Not me._";
	text2 = "_I shouldn't be angry now. But these folk, their useless arms and armor, it brings the shouting out._";

begintalknode;
	state = 161;
	nextstate = -1;
	condition = 1;
	question = "_What do you think of the Gentle Coast?_";
	text1 = "_They're rich and weak, with their quivering men and their domineering women. They do our trading for us, they take too much money, and they think they're better._";
	text2 = "_Come to the highlands, Haven. Come see the real Ro._";

begintalknode;
	state = 161;
	nextstate = -1;
	condition = 1;
	question = "_Useless arms and armor?_";
	text1 = "_Look at them! They know they aren't Ro anymore. They know the spirit of the Rokaj doesn't live in them. So they spend too much money on blades they never use. On armor that wouldn't even block a good punch._";
	text2 = "_They're even led by a woman! Granted, I hear she learned magic from the Erudico. Have to respect that. But still._";
	text3 = "_They were even led by a woman! Until she got burned up._";
	code =
		if (gf(10,11) < 2)
			rs(3);
			else rs(2);
	break;
	
begintalknode;
	state = 161;
	nextstate = 170;
	condition = 1;
	question = "_What do you think of Haven?_";
	text1 = "_Well, you're bigger. Stronger. So you get to control us, for now. But us Ro, we know how to watch. We know how to wait._";

begintalknode;
	state = 170;
	nextstate = -1;
	condition = 1;
	question = "_Why do you speak so freely to me?_";
	text1 = "_I've never been much for the traditions. I'm too loud for Gentle Knowing, too much of a drinker for Working, too honest for Deep Truth. That's why I'm a trader._";
	text2 = "_The Low Dhaga has to be rid of me sometimes to be able to stand me. Honest people die in the Rokaj._";

begintalknode;
	state = 160;
	nextstate = 161;
	condition = gf(10,17) > 0;
	question = "_What brings you to town?_";
	text1 = "_I'm a merchant and a trader. I bring loads of fine stone and the builders to properly use it. Building and stone are the business of the Low Dhaga, and it needs people like me to sell their work._";
	text2 = "_But now? Today? I'm here because we have a problem._";
	code =
		if (gf(10,17) >= 2)
			rs(2);
	break;
	
begintalknode;
	state = 161;
	nextstate = 162;
	condition = gf(10,17) <= 2;
	question = "_And what is your problem?_";
	text1 = "_Raiders. The fools came out of the hills. Some of them attacked you. The rest stole from the weaklings of the Gentle Coast._";
	text2 = "_And some of them? They took from my clan. They took our claim. Now we need to find warriors who want stone._";

begintalknode;
	state = 162;
	nextstate = -1;
	condition = 1;
	question = "_You don't approve of the raids._";
	text1 = "_There are a lot of folk I hate, but I'm not fool enough to want war. The last rebellion, Haven took our walls. We rise up again? Who knows what you will take from us?_";

begintalknode;
	state = 162;
	nextstate = 163;
	condition = 1;
	question = "_I'm interested in your stone._";
	text1 = "_Well, we have a claim. A quarry. Some of the raiders saw it was weak and grabbed it from us. I'm looking to pay someone to take it back. Looking for stone to remake your forts, [P]? We can provide it._";
	text2 = "";
	code = 
		set_flag(10,17,2);
		toggle_quest(23,1);
	break;

begintalknode;
	state = 163;
	nextstate = -1;
	condition = 1;
	question = "_Where is your quarry?_";
	text1 = "_It's in the Gentle Coast, to the northeast. Across two rivers. Some of my clanmates are there. They can explain what is happening._";

begintalknode;
	state = 163;
	nextstate = -1;
	condition = 1;
	question = "_What is the exact problem there?_";
	text1 = "_Hmmm. Well, there are raiders. And ka-wolves. That's what they wrote me. But ... It was a quick message, and they were leaving a lot out. They can tell you more. Then you can kill the invaders. That part, at least, should be simple._";

begintalknode;
	state = 160;
	nextstate = -1;
	condition = gf(10,17) == 2 && gf(13,11) > 0;
	question = "_I've been to the Dhagan claim. It is free of raiders now._";
	text1 = "_So I have heard. The runner was already here._ He takes a letter out of his belt pouch. _I will send this back. You'll have stone delivered to your forts soon. Haven may be crushing us under its boot, but you know how to do a fair trade._";
	code = 
		set_flag(10,17,3);
		toggle_quest(23,10);
		award_party_xp(SMALL_QUEST_XP);
		activate_mine_resource(8);
	break;		

begintalknode;
	state = 160;
	nextstate = -1;
	condition = gf(10,17) > 2;
	question = "_Haven requires more stone._";
	text1 = "_Then you must go to the Low Dhaga. Up the Pilgrimage Road, then take the first right._";

		
// nanash

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = "The dockmaster of Laskara is working his trade, directing the workers and making notes about the shipments. Sometimes, he breaks up a fight among drunken sailors. His expensive, fancy studded armor and rapier aren't much for fighting, but the sailors aren't hard to handle.";
	text2 = "When he sees you, however, all other business is set aside. He runs up and bows. _I heard that you arrived, [P]. I am Dockmaster Nanash. Honor to meet you. All of the wealth of the Ro passes through this port, and it's all thanks to Haven._";
	text5 = "Dockmaster Nanash stands and speaks with you, and the docks constantly threaten to devolve into chaos around him. Crates get pushed around. Sailors bump into you. Goods are carried into and out of the trading hall to the north.";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = 191;
	condition = 1;
	question = "_What does the dockmaster do?_";
	text1 = "_Keep order. Keep the goods flowing. Make sure nothing gets smuggled. Collect customs and duties._";
	text2 = "_And ... Send the right message. I give civilized greetings to visitors, to show that the Rokaj is a proper nation. That is the gift my province gives to the Ro._";

begintalknode;
	state = 191;
	nextstate = -1;
	condition = 1;
	question = "_Customs and duties?_";
	text1 = "_Everything that travels through this port has a tax on it. Gold that goes to keep the port open and safe. Keeping a place like this running isn't free._";
	text2 = "_The Gentle Coast is wealthy because of this trade, and we earn it._";

begintalknode;
	state = 191;
	nextstate = -1;
	condition = 1;
	question = "_The Gentle Coast's gift to the Ro?_";
	text1 = "_If it wasn't for our port and our trading and our civilization, the Rokaj would be poor, hungry, violent, and desperate._";
	text2 = "_But does the Low Dhaga thank us? Does the Kranas Woods acknowledge our value? Does the High Litha appreciate it? No! They mock us. Call us weaklings, while we sustain them._";

begintalknode;
	state = 191;
	nextstate = 195;
	condition = 1;
	question = "_Civilized greetings?_";
	text1 = "_First-time visitors to the Rokaj are scared. They think we're all wild madmen swinging swords around. When I am the first Ro they meet, they know that they are trading with honorable, courteous, civilized folk._";

begintalknode;
	state = 195;
	nextstate = -1;
	condition = 1;
	question = "_And the raids?_";
	text1 = "_A temporary difficulty. We will find the raiders and stack their heads on the dock pilings. When our visitors see the skulls, they'll know the Rokaj will be a civilized place once more._";

begintalknode;
	state = 190;
	nextstate = 192;
	condition = 1;
	question = "_So how are things in the Gentle Coast?_";
	text1 = "_Not good, as you well know. Raiders have been coming down from the highlands. Some tried to kill you. Others took over mines and forts. It's a horrible insult. They could cause a war! We'll make them pay. Be sure of it._";
	text3 = "_This is a dark time. Raasa Elha was killed. Blood will flow for this loss._";
	action = DEP_ON_SDF 10 11 1;

begintalknode;
	state = 192;
	nextstate = -1;
	condition = gf(10,11) > 1;
	question = "_What did you think of Raasa Elha?_";
	text1 = "_A loyal Rokaj, a great trader, and someone who could deal with Haven. A good Raasa. She knew what was best for us. I mourn her._";

begintalknode;
	state = 190;
	nextstate = 193;
	condition = gf(10,18) <= 1;
	question = "_Do all of the goods of the Rokaj flow through this port?_";
	text1 = "_Not quite. Regular trade comes through here. Supplies to Haven's forces enter through Port Osborn. Or they did. That port was taken by raiders. Now Haven's goods come through here, and it makes everything slower._";
	text2 = "_There's a way some warrior could help Haven here._";

begintalknode;
	state = 193;
	nextstate = 194;
	condition = 1;
	question = "_Help Haven how?_";
	text1 = "_Go to Port Osborn and retake the captured docks from the brigands. Haven will get plenty more supplies then. More importantly, you can recover the lost contracts. Papers we can use to determine what you have paid for._";
	text2 = "_If you can recover those contracts for me, I can use them to get precious supplies for you. Just a thought._";
	code = 
		set_flag(10,18,1);
		toggle_quest(24,1);
	break;

begintalknode;
	state = 194;
	nextstate = -1;
	condition = 1;
	question = "_And where are these captured docks?_";
	text1 = "_East of here, along the water. I think that is where you arrived at the Rokaj._ That is correct. Port Osborn was where the raiders attacked Sutter and you.";

begintalknode;
	state = 194;
	nextstate = -1;
	condition = 1;
	question = "_Why don't you just give me the supplies?_";
	text1 = "_Because Haven is a land of papers. Of contracts. Of giving your word. I can't claim wood and stone from the clans unless I can prove you have paid for it. With contracts._";

begintalknode;
	state = 194;
	nextstate = -1;
	condition = 1;
	question = "_The contracts are still at the port?_";
	text1 = "_Unfortunately so. When my merchants fled here, none of them had the papers with them. None of them knew where they were. They must still be there._";

begintalknode;
	state = 194;
	nextstate = -1;
	condition = 1;
	question = "_Where are the contracts hidden?_";
	text1 = "_I don't know, unfortunately. They should still be in the port. I don't think that the raiders would want them._";

begintalknode;
	state = 190;
	nextstate = -1;
	condition = gf(10,18) == 1 && has_spec_item(23) > 0;
	question = "_I found the contracts in Port Osborn._ (Give them.)";
	text1 = "You give him the contracts. He inspects them. _Excellent! In far better condition than I would have thought. That will be better for us all. Less arguments for me. Faster supplies and a safe port for you._";
	text2 = "_The general offered a bounty to get the job done. I guess you get it._ He gives you a pouch of gold coins. You should find more building supplies waiting for you soon. When Haven rebuilds its forts, it will be better for us all._";
	code = 
		set_spec_item(23,-1);
		set_flag(10,18,2);
		toggle_quest(24,10);
		award_party_xp(SMALL_QUEST_XP);
		change_coins(100,TRUE);
		activate_mine_resource(9);
	break;		
	
// ajaya

begintalknode;
	tag = 220;
	state = -1;
	nextstate = 220;
	condition = 1;
	question = "Name";
	text1 = "There is a middle-aged woman sitting alone in the side room of the inn. She slowly eats stew and sips steaming, herbal-smelling liquid from a pewter mug. When you enter, she looks you up and down, coldly analyzing you.";
	text2 = "Then she motions for you to join her. _I am Ajaya. I am from the High Litha. I would speak with you. It may profit us both._";
	text5 = "Ajaya eats her stew and sips her liquid. You think it has some alcohol in it. Her eyes slowly unfocus as she drinks more of it. Not that it makes her any friendlier.";
	action = INTRO;

begintalknode;
	state = 220;
	nextstate = 221;
	condition = 1;
	question = "_Tell me about the High Litha._";
	text1 = "_It is the highest province in the Rokaj. We live in the icy, rocky peaks._ You wait for more. You get a lot of silence in return.";
	text2 = "You note that her garb is thick and warm, but ragged and stained. You suspect that her tunic has been passed down from generation to generation.";
	
begintalknode;
	state = 221;
	nextstate = 222;
	condition = 1;
	question = "_That is not a lot of detail._";
	text1 = "_Mm. We are high, and we see much. We keep the old ways of the Rokaj. When we start to go astray, the ghosts correct us. Sometimes, we are asked to provide judgment._";

begintalknode;
	state = 222;
	nextstate = -1;
	condition = 1;
	question = "_Judgment? What do you think of the Gentle Coast?_";
	text1 = "She looks through the arch at the wealthy coast-folk, sipping imported wine, comparing their stylish weapons and armor, and generally laughing and having a good time.";
	text2 = "She shrugs. _We have not been asked to judge them. So we don't._";

begintalknode;
	state = 222;
	nextstate = -1;
	condition = 1;
	question = "_Ghosts?_";
	text1 = "_Yes._";

begintalknode;
	state = 222;
	nextstate = -1;
	condition = 1;
	question = "_What do you think of Haven?_";
	text1 = "_You are the reality. We must bend ourselves around you._";

begintalknode;
	state = 220;
	nextstate = -1;
	condition = gf(80,12) < 7 && gf(0,11) >= 12;
	question = "_I need to meet the Raasa of the High Litha._";
	text1 = "_Then you should go to the High Litha._";

begintalknode;
	state = 220;
	nextstate = 223;
	condition = 1;
	question = "_Why are you in Laskara?_";
	text1 = "_I come to trade. The High Litha produces quicksilver. That which we don't use ourselves, we trade here._";

begintalknode;
	state = 223;
	nextstate = -1;
	condition = 1;
	question = "_How do you get quicksilver?_";
	text1 = "_We dig the cinnabar out of the stone. The high mountains is where it is found. Then it is cooked to get the quicksilver._";
	text2 = "_A little of the cooking takes place high up. Most happens in our claims in the Gentle Coast. The fuel we need is here._";

begintalknode;
	state = 223;
	nextstate = -1;
	condition = 1;
	question = "_What do you use quicksilver for?_";
	text1 = "_It can be made into potions. Drinking the potions can bring clarity. See the world in a new way. Talk to the shades that guide us._";

begintalknode;
	state = 223;
	nextstate = 224;
	condition = gf(10,19) < 2;
	question = "_I could use some quicksilver._";
	text1 = "_Yes. Haven needs it. Much of the Ro's new wealth comes from the rocks. Rocks dug up by the humble folk of the High Litha. I can give you the quicksilver you need. If you help us._";
	text2 = "_My clan has a claim in the Gentle Coast. There, the quicksilver is brought from the rocks. The claim has ghosts. They keep us from working. Free our claim, and you will be paid._";
	code = 
		set_flag(10,19,1);
		toggle_quest(25,1);
	break;

begintalknode;
	state = 224;
	nextstate = -1;
	condition = 1;
	question = "_Where is this workshop?_";
	text1 = "_Northeast of here, up against a wall of mountains. Cross one river._";

begintalknode;
	state = 224;
	nextstate = -1;
	condition = 1;
	question = "_The claim has ghosts? What should I do about them?_";
	text1 = "_There are High Lithans there. They can tell you more._";
	text2 = "Based on your experience with Ajaya, talking to them should be an absolute treat.";

begintalknode;
	state = 220;
	nextstate = -1;
	condition = gf(10,19) == 1 && gf(12,11) > 0;
	question = "_I have purged the Litha claim of ghosts._";
	text1 = "You tell the story to Ajaya. She listens, stony-faced, while sipping her drink. Then she nods. _Good. I thank you. I will make sure that supplies are sent to your forts. I think you will find the payment adequate._";
	text2 = "You wait for her to elaborate. In vain.";
	code = 
		set_flag(10,19,2);
		toggle_quest(25,10);
		award_party_xp(SMALL_QUEST_XP);
		activate_mine_resource(10);
	break;		

begintalknode;
	state = 220;
	nextstate = -1;
	condition = gf(10,19) > 1;
	question = "_I could use more quicksilver._";
	text1 = "_Yes._ Long pause. You stare at her. Finally, she adds, _It is in the High Litha. North on the Pilgrimage Road._";
						
// homais

begintalknode;
	tag = 250;
	state = -1;
	nextstate = 250;
	condition = 1;
	question = "Name";
	text1 = "Most of the researchers, sages, and wizards here avoid you. You suspect that the Erudico are not a social bunch, and dealing with royalty is not in their skill set.";
	text2 = "The oldest among them, happily, shows a sense of hospitality. He approaches you, wearing his least-stained robe. _Ahhh. A Havenite. Haven has not honored the Erudico with a visit in a long time. I am Crafter Homais, of the Gentle Coast. I will be polite to you._";
	text5 = "Crafter Homais makes small talk with you about his work. It's some sort of alchemical experiment, stretching on for many years. You don't understand a word of it. Occasionally, you get him to talk to you about something else.";
	action = INTRO;

begintalknode;
	state = 250;
	nextstate = 251;
	condition = 1;
	question = "_Tell me about the Erudico._";
	text1 = "_We are the learners of the Rokaj. We study magic. We watch the stars. We expand science. We bring power to the warriors. Alas, we are in decline. We can show you how we are, but not how we were._";
	
begintalknode;
	state = 251;
	nextstate = -1;
	condition = 1;
	question = "_You can teach me new powers?_";
	text1 = "_The Erudico do expand the arts of war, but that work mainly takes place in our main tower, on the Pilgrimage Road._";
	text2 = "_We do have a book on the arts of war in Laskara. You can read it in the Raasa's hall._";			
		
begintalknode;
	state = 251;
	nextstate = -1;
	condition = 1;
	question = "_What is 'science'?_";
	text1 = "_It is the study of the ways of the world when not touched by magic. How they move, stay still. Live. Die. It is an obscure field of study, but we trade letters with other vassals._";
	text2 = "'Science'? How odd. There was nothing of this in your studies back in Sharyn's Palace. Typical Rokaj eccentricity.";			
	
begintalknode;
	state = 251;
	nextstate = 252;
	condition = 1;
	question = "_How are you in decline?_";
	text1 = "_The Erudico has been the refuge for the more thoughtful young Ro since recorded history. However, we decline when outside oppressors conquer us. In those times, we feed on the ideas of others instead of making them ourselves._";
	
begintalknode;
	state = 252;
	nextstate = -1;
	condition = 1;
	question = "_Some of the Ro want to drive us out._";
	text1 = "_So I have heard. I do not approve. The Erudico is my life, but war is bad, and I would prefer it is avoided._";
	
begintalknode;
	state = 250;
	nextstate = 253;
	condition = 1;
	question = "_Where is the main outpost of the Erudico?_";
	text1 = "_The Tower of the Erudico is north of here, resting on the Pilgrimage Road. They would be highly honored if you visited._";
	text2 = "_They are masters of all sorts of crafts, even some unknown outside of our land. I'm sure that they would love to show off._";			
	
begintalknode;
	state = 253;
	nextstate = -1;
	condition = 1;
	question = "_What sort of crafting do they do?_";
	text1 = "_The Rokaj produces many materials with innate magical properties. Amber. Crystal. Quicksilver and deep metal. This, combined with secrets we have learned, can be used to expand knowledge and create powerful tools of war._";
	
begintalknode;
	state = 250;
	nextstate = 254;
	condition = 1;
	question = "_You say that you gain knowledge here?_";
	text1 = "_In a small way. We mostly absorb knowledge brought in through the docks, evaluate it, and pass it on. This is a small and humble outpost._";
	text2 = "_We also send out scavengers to look for knowledge that has been lost. With all our raids and wars, lots of things get lost in the chaos._";			
	
begintalknode;
	state = 254;
	nextstate = 255;
	condition = gf(10,25) < 2;
	question = "_Any particular lost knowledge you're looking for?_";
	text1 = "_Hmmm. What a fortunate coincidence that you asked. I have been sending scavengers to some old Erudico ruins to the east. We have been trying to recover old writings from there for some time._";
	text2 = "_Look for intact books in the ruined library. We offer a bounty for them. Precious lore of our own, that might be of great value._";			
	code = 
		set_flag(10,25,1);
		toggle_quest(26,1);
	break;
	
begintalknode;
	state = 255;
	nextstate = -1;
	condition = 1;
	question = "_Where are the Erudico ruins?_";
	text1 = "_In the easternmost reach of the Gentle Coast. Go north, then east across two rivers. Then look for the dead land._";
	text2 = "";			
		
begintalknode;
	state = 255;
	nextstate = -1;
	condition = 1;
	question = "_Why were these ruins abandoned?_";
	text1 = "_Not enough Erudico to study there. They were left behind a century and a half ago. Our learned students were leaving to study in Haven instead of work here._";
	
begintalknode;
	state = 255;
	nextstate = -1;
	condition = 1;
	question = "_What sort of dangers might I find there?_";
	text1 = "_Alas, Erudico towers are often abandoned in haste. A few pests might have been left behind. Others might have snuck in, attracted by the raw magic left behind._";
	text2 = "_Just pests, though. Nothing that can threaten you._";			
	
begintalknode;
	state = 250;
	nextstate = -1;
	condition = gf(10,25) == 1 && has_spec_item(29) > 0;
	question = "_I found some books in your ruins._ (Give them.)";
	text1 = "He takes the books, gives them a quick inspection, and dumps them in a burlap sack. Then he asks about the state of the ruins. As he listens, he shakes his head.";
	text2 = "As an apprentice brings you your reward, a case with a scroll, Crafter Homais says, _This is distressing news. I'm afraid that we must offer another bounty, for anyone who can help us with these ruins._";			
	code = 
		set_flag(10,25,2);
		toggle_quest(26,3);
		award_party_xp(SMALL_QUEST_XP);
		set_spec_item(29,-1);
		change_crafting(0,1,0,0,0);
	break;		
	
begintalknode;
	state = 250;
	nextstate = 256;
	condition = (gf(10,25) == 2 || gf(10,25) == 3);
	question = "_What else might I do in the Erudico ruins?_";
	text1 = "_I suspected that the ruins were infested. They're a lot more infested than I expected. Records say that some beasts were being stored in the upper level. If they are still there, they should probably be destroyed._";
	text2 = "_We will offer a bounty to anyone who explores an upper level. If you get to practice your skills destroying monsters, consider that a bonus._";			
	code = 
		set_flag(10,25,3);
		toggle_quest(26,4);
	break;
	
begintalknode;
	state = 256;
	nextstate = -1;
	condition = 1;
	question = "_There 'might' be monsters up there?_";
	text1 = "_It's been a very long time. Who knows? Maybe all the slimes and enchanted spiders and constructs starved to death?_";
	
begintalknode;
	state = 256;
	nextstate = -1;
	condition = 1;
	question = "_What should I do if I find monsters?_";
	text1 = "_Oh, I'd destroy them. They're probably dangerous. And very angry and insane after being locked up for so long._";
	
begintalknode;
	state = 256;
	nextstate = -1;
	condition = 1;
	question = "_Why did the Erudico leave monsters trapped and unattended?_";
	text1 = "_Who can say? I wasn't there. I have no idea what the old Erudico were thinking when they shut that facility down._";
	text2 = "_Does seem like the sort of thing we'd do, though._";			
	
begintalknode;
	state = 250;
	nextstate = -1;
	condition = gf(10,25) == 3 && gf(14,11) > 0;
	question = "_I cleared out the monsters in your ruins. And yes. There were monsters._";
	text1 = "You tell Crafter Homais the tale. He is fascinated. _The old Erudico were far more neglectful than I expected. How amusing. I will have one of our storerooms unlocked for you. Take whatever you find within. I hope that is a suitable reward for your effort._";
	text2 = "_You are an industrious fellow, Havenite. And a worthy ally to the Erudico. I can see a way that we can provide you with useful knowledge._";			
		code = 
		set_flag(10,25,4);
		toggle_quest(26,5);
		award_party_xp(SMALL_QUEST_XP);
	break;		

begintalknode;
	state = 250;
	nextstate = 257;
	condition = gf(10,25) == 4 ||  gf(10,25) == 5;
	question = "_What is the final way I can gain knowledge?_";
	text1 = "He writes a letter, seals it in an envelope, and hands it to you. _The Tower of the Erudico is north of here. Erud Alsof, if he lives, is in charge there. Give him this letter, and he will be a great ally to you._";
	code = 
		if (gf(10,25) == 4)
			set_spec_item(24,1);
		set_flag(10,25,5);
		toggle_quest(26,6);
	break;
	
begintalknode;
	state = 257;
	nextstate = -1;
	condition = 1;
	question = "_And where is the Tower of the Erudico?_";
	text1 = "_The Tower of the Erudico is on the Pilgrimage Road. Just go north. It is very hard to miss._";

	// sciaris

begintalknode;
	tag = 280;
	state = -1;
	nextstate = 280;
	condition = 1;
	question = "Name";
	text1 = "There is a young scholar standing at this table, poking at an old, crumbling text. He seems calm at first. Then you see the slight tremble of his hands.";
	text2 = "He says, in very soft voice, _I am Erud Sciaris. I only need a moment._";
	text5 = "Erud Sciaris stares down at the book. At first, you thought he was standoffish. Then you realized that your presence terrifies him.";
	action = INTRO;

begintalknode;
	state = 280;
	nextstate = -1;
	condition = 1;
	question = "_I'd like to know about the Erudico._";
	text1 = "_My request. Grant it. In time, you will learn what you need to learn._";

begintalknode;
	state = 280;
	nextstate = -1;
	condition = 1;
	question = "_What is that book?_";
	text1 = "_I ... I'm not sure. It was here when I got here._";

begintalknode;
	state = 280;
	nextstate = 281;
	condition = 1;
	question = "_What did you want to say?_";
	text1 = "_The Erudico needs to talk to an ... an outsider. Things are ... It is hard to say. I was ... I have a message._";
	text2 = "";

begintalknode;
	state = 281;
	nextstate = -1;
	condition = 1;
	question = "_Very mysterious._";
	text1 = "_I don't know much either. I just know ... Message._";

begintalknode;
	state = 281;
	nextstate = 282;
	condition = 1;
	question = "_And the message is?_";
	text1 = "_Erud Fa'alis. In the Tower of Erudico. The heart of our order. He ... To know one's enemies is to know oneself._";

begintalknode;
	state = 282;
	nextstate = 283;
	condition = 1;
	question = "_Very profound, I guess._";
	text1 = "_No. That is what you are to say to him. To let him know I talked to you. Sorry. I'm very new at all this. Also, I don't want to be killed._";

begintalknode;
	state = 283;
	nextstate = -1;
	condition = 1;
	question = "_Killed by whom?_";
	text1 = "_The best killers of the Ro. I am so exposed out here._";

begintalknode;
	state = 283;
	nextstate = 284;
	condition = 1;
	question = "_So it is a pass phrase?_";
	text1 = "_Yes. 'To know one's enemies is to know oneself.' I saw you arrive. I know you are the one to choose. Say the phrase to Fa'alis, and he'll know too._";
	code =
		sf(30,29,1);
		toggle_quest(19,1);
	break;
	
begintalknode;
	state = 284;
	nextstate = -1;
	condition = 1;
	question = "_This is all very odd._";
	text1 = "_Yes. But ... Erud Fa'alis will say more. It will be worth it. Good for Haven, too._";
	text2 = "_That is all I have to say. I will be gone soon. Alive, I hope. Please go._ He turns away from you and keeps poking at the book.";
	action = END_TALK;

begintalknode;
	state = 284;
	nextstate = -1;
	condition = 1;
	question = "_If I get the chance, I'll talk to Fa'alis._";
	text1 = "_I thank you. It will be worth your time. Good for Haven, too._";
	text2 = "_That is all I have to say. I will be gone soon. Alive, I hope. Please go._ He turns away from you and keeps poking at the book.";
	action = END_TALK;

begintalknode;
	state = 284;
	nextstate = -1;
	condition = 1;
	question = "_I don't want to be involved in this._";
	text1 = "_But ... you do. I really think you do._";
	text2 = "_That is all I have to say. I will be gone soon. Alive, I hope. Please go._ He turns away from you and keeps poking at the book.";
	action = END_TALK;

	